<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改巷道口输送机')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-msgXdkSsj-edit" th:object="${msgXdkSsj}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">位置：</label>
                <div class="col-sm-8">
                    <input name="location" th:field="*{location}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">名称：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text"readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">到位标识：</label>
                <div class="col-sm-8">
                    <input name="dwbz" th:field="*{dwbz}" class="form-control" type="text"readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">空闲标志：</label>
                <div class="col-sm-8">
                    <input name="kxbz" th:field="*{kxbz}" class="form-control" type="text"readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">设备状态：</label>
                <div class="col-sm-8">
                    <input name="sbzt" th:field="*{sbzt}" class="form-control" type="text"readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">任务号：</label>
                <div class="col-sm-8">
                    <input name="rwh" th:field="*{rwh}" class="form-control" type="text"readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否有料架：</label>
                <div class="col-sm-8">
                    <select name="haveLj" class="form-control m-b" th:with="type=${@dict.getType('is_or_not')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{haveLj}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">巷道号：</label>
                <div class="col-sm-8">
                    <input name="roadwayId" th:field="*{roadwayId}" class="form-control" type="text"readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">入出库标识：</label>
                <div class="col-sm-8">
                    <select name="inOrOut" class="form-control m-b" th:with="type=${@dict.getType('in_out_library')}" readonly  disabled>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{inOrOut}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否需要料架：</label>
                <div class="col-sm-8">
                    <input name="haveSure" th:field="*{haveSure}" class="form-control" type="text"readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">货位状态：</label>
                <div class="col-sm-8">
                    <select name="status" class="form-control m-b" th:with="type=${@dict.getType('space_status2')}" >
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{status}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">区域Id：</label>
                <div class="col-sm-8">
                    <select name="areaId" class="form-control m-b" th:with="type=${@dict.getType('area_id')}" readonly disabled>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{areaId}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "device/msgXdkSsj";
        $("#form-msgXdkSsj-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-msgXdkSsj-edit').serialize());
            }
        }
    </script>
</body>
</html>